package com.balloon.springboot.autoconfigure.security;

import com.balloon.springboot.autoconfigure.AutoConfigConstant;
import lombok.Data;
import org.springframework.boot.context.properties.ConfigurationProperties;

@ConfigurationProperties(prefix = AutoConfigConstant.SECURITY)
public class SecurityExtAutoProperties {

    /**
     * 是否启用配置
     */
    private boolean enabled;

    /**
     * 是否允许跨域
     */
    private boolean cors;

    /**
     * Security 默认过滤url
     */
    private String filterUrl;

    public boolean isEnabled() {
        return enabled;
    }

    public void setEnabled(boolean enabled) {
        this.enabled = enabled;
    }

    public boolean isCors() {
        return cors;
    }

    public void setCors(boolean cors) {
        this.cors = cors;
    }

    public String getFilterUrl() {
        return filterUrl;
    }

    public void setFilterUrl(String filterUrl) {
        this.filterUrl = filterUrl;
    }

}
